trying to get 2d index to work