moved hash update in runtime