working on out of index error