windowing for digitizing