add echo function to output value