try fixing bug- index