modified units to calculate the cost of each level instead of prividing
that info