change hash.Hash to reference