update replace action method