add hash calculate