renamed next and previous for clarity