revise the handwriting code, and then it works!