not complete code
delete motion code