udpates units
changes the structure of formula