added system call for samtools