main hash filter