updated motorBWorker function so it works