updating locks