added terminate action