correct format_vol() function