first pass at threshold