refactoring util.py