just some threshold fixes