resolve the scope problem in enumerize old gem