update hash in C again