output clean up in Window