initializ pointers to avoid memory leak