credit to Kaneco for suggestion of automatically ending reservations