fixed some syntax errors in helper.rb