add next and pre