step2: mv hook to process_measurement