add function for calibration and allignment