be compatible with protected_attributes