minor refactoring within method_missing