window_depth(i, depth) is implemented