minor adjustment to computation of hash