adjust comparison threshold