finish locking