extract conditional