using correct index this time