update hash on paint