modify value of Ref before saving delivery