added safe option for update operation