enclose only_if in braces