finished check lock method