code cleaning and calibration until sunday Nov 16