add pre and next