moved helper functions (started with underscore) to utils.py