Cleaning + passing window and coument in arg