added loggig for deliverystate