extended the read bam class