added code for delivery