updated rolling hash