updates units