removed unnecessary locks