fixed ugly sample filtering step, left over from when i was passing mapping files around rather than dicts