changed logic in makeReservation API call