removing toplevel