added mainInputs