updated to use tracpy class