move attribute values when before create/update