fixing improper use of tertiary if that hopefully resolves issue #1