modified methods for ModelFlags.