added a condition section to YAML elements