refs for unittype and quantity