cleanup
Refactoring
Fix: Swapped thisLocal replacement inside pts flow functions
refactoring
Cleanup