rotCar function return type fixed