implemented CopyDocument