removing unnecessary locks