deleted unused argument, units=km