adding units for graphs