merge lock and out of window