1.modify grab code. 2.add code about measure the grab function.