insert hash function into parser