a lock is used to provide security.