update--lock and unlock initialization