refactor: update instead update_attributes