added motor react function
added reflect event function