added conditional to catch foo bar