add ruby conditionals