why do you compare parent to window itself?