added deleted check to copy search