updating the output