updates units and data_types