update comparetoRef so that high quality and low quality mismatches are taken into account