a lock is used for security.