put picard and gatk pathway into the argument of function