removed iterator hook for replace