tried to fix index