run method in window, docs