adding booking function