2d index wont work