extracting conditions