call D for give and get quantity before util.devise