adding a check for window_overlap and window_length