needed to change to a dict (not function)