refactor createreport task