changed weight calculation to use inventory units