SMASD ranks 165th out of state's 500 districts