Rewrite hash method with tap