remove unnecessary lock to improve performance