implemented variable-count-of-points threshold scanner