added conditions for each assert