switched pug strategy to nearly pure binary search