update code to pass window building