more rubyish code