window changed, added new method