add new function with pointer to pointer