modify the pre and next product