changed ModelInput struct