correct locking