restructure for single line output