check reads length and change allowed mismatch from 0 or 1 to true or false