added cases and working case windowing