experimentally add new feature to swap buffer of window #5