update the way that getting pointer size method