use window in pipes