update to level locking