loading inputs and model