ruby fix: overloading methods