fixed error but is very slow to look up. think it is dicts