added more functionality to motors