removed some duplicated code in FastQC