add assert condition