added protected_attributes