added lock to pT window