ENH: chnaged the module to core.py