oops I needed a fn from the old code.py