add a statement to output return value