remove redundant lock to improve speed