added if conditions for pipeline definitions