changes on singlemotoroperation.js file