updated utility.py: