refactor the tractor