added gem protected_attributes