added the changes for starting motion