remove prev/next bad code