WOU: re-write the code for MOTION_S3 of AHC