updated function enterCar