figuring out the nested reservations