removed redundant lock