added code for checkout