remove next and prev