renamed replace with update