remove prototypeTree and prototypeWindow