use given hashmethod