consolidate conditions