commit after adding condition terminal