implemented the ability to use a hash when filtering