add condition.rb