window wasn't defined so removed it