added parallel terminate