format variable output