moving message out of end()