What are you trying to do here? I'm confused by the map (filter) over a HashMap (treating it as a vector), it doesn't look like the right abstraction and looks like it could break