expected conditions before