fix to utils.py