added the code lock