correct indices