refactored out rubyNumber