remove window and use root instead