added restack_windows