changed the hash
modified updating last entries