tf now stored as array of IDs rather than single integer
fixed matcher