changes quantity to physicalquantity