srm 156

buggy, fixing this horrible indexing bug