added assert condition