now parses into a map and uses map deletion to filter and search.