refactored if conditional into setProto