changed planning.py to utils.py