hash vs  method