continued implementing lock_phase2