motor now works properlly