define method at top-level was failing in 1.9