updates lock