remove reference to toplevel object