adding to output