begining threshold sweep