clean up child pointers