refactor not to remove id from attributes in 'update'