add function to execute all motion