extract conditions