added format_unit to change units