finished implementing initial tan network, still don't know how to get cmi right