implement motion event interface