refactor Windowing translation