util function for copy model instance
version 0.1.02