add withWindow comment