terminates ok