add automatic unit conversion