update the output