adds minimum room RMS of 0.001
changed thresdhold of distance