extend hashing to multiple patterns