update after lock