improved doc copy