implemented checkReservation. may need to change void