more rubyist

cleaned up the code to look less Java-ish