refactoring table tool ($tx.pointX, $tx.pointY)