added function to expose underlying data pointer.