using angular.copy