corrected read length calculation