changed internal data pointer to get rid of leaks