bookin logic