clean up errors in helpers.py