tweak algorithm to be less sensitive