updated delivery routine1 and delivery routine2