abstract out input. wrote simple calibration