use tvb_get_ptr