modify replace operator