index functions from getPtr as well