implemented post_window for ec