wrapped ends for non-insertion algorithms