replace old define.py