Update prepare_ptics