updated how to clone message to use recursive