issue with prev and next