remove unnecessary lock