module.rb minor code cleanup