near completed, only leave [code only] flag