flush the output