added if block to project.rb