took out next and prev