first pass of different states
calibration code