correct commented output to be in proper order