remove unnecessary locks