Revert "fix compile error in v1.0.5 & implement getPt"

This reverts commit 9fb62a727f10d838807e597e927a31edb746d4d9.
fix compile error in v1.0.5 & implement getPt