tidy up variable output