adding ios-ptr code