20 Best Code Locks For Gates [2024]

Are you looking for the best Code Locks For Gates? Based on expert reviews, we ranked them. We've listed our top-ranked picks, including the top-selling Code Locks For Gates.

We Recommended:

# Preview Product
1 YARDLOCK Keyless Gatelock, Secure Gate Lock (MBX-2016Y-3ESF) YARDLOCK Keyless Gatelock, Secure Gate Lock (MBX-2016Y-3ESF)
2 Master Lock Combination Lock, Set Your Own Combination Lock, Indoor and Outdoor Padlock,... Master Lock Combination Lock, Set Your Own Combination Lock, Indoor and Outdoor Padlock,...
3 Stainless Steel 100% Mechanical Keyless Entry Door Lock with Keypads Door Knob, Waterproof Keypad... Stainless Steel 100% Mechanical Keyless Entry Door Lock with Keypads Door Knob, Waterproof Keypad...
4 Puroma 2 Pack 2.6 Inch Long Shackle Combination Lock 4 Digit Outdoor Waterproof Padlock for School... Puroma 2 Pack 2.6 Inch Long Shackle Combination Lock 4 Digit Outdoor Waterproof Padlock for...
5 CODACE Mechanical Keyless Entry Door Lock with Keypad Door Knob, Waterproof Keypads Deadbolt Door... CODACE Mechanical Keyless Entry Door Lock with Keypad Door Knob, Waterproof Keypads Deadbolt Door...
6 CODACE Keyless Entry Door Lock with Keypad Door Knob, Double Sided Keypads Door Lock with Handle,... CODACE Keyless Entry Door Lock with Keypad Door Knob, Double Sided Keypads Door Lock with Handle,...
7 CODACE 100% Mechanical Keyless Entry Door Lock with Keypad Door Knob, Waterproof Keypad Deadbolt... CODACE 100% Mechanical Keyless Entry Door Lock with Keypad Door Knob, Waterproof Keypad Deadbolt...
8 Disecu 2.5 Inch Long Shackle Combination Lock 4 Digit Outdoor Waterproof Padlock for School Locker,... Disecu 2.5 Inch Long Shackle Combination Lock 4 Digit Outdoor Waterproof Padlock for School...
9 JOUNJIP Mechanical Keyless Combination Lever Handle Door Lock - Passage Mode - Double Sided Keypad... JOUNJIP Mechanical Keyless Combination Lever Handle Door Lock - Passage Mode - Double Sided...
10 MUTEX MX920 Double Keypad Mechanical 14 Key Combination Lock , Keyless Entry Security for Home... MUTEX MX920 Double Keypad Mechanical 14 Key Combination Lock , Keyless Entry Security for Home...
11 Igloohome Smart Padlock, Smart Lock w/ Case- IOS/Android App Remotely Generates Bluetooth-Keys/Pin... Igloohome Smart Padlock, Smart Lock w/ Case- IOS/Android App Remotely Generates...
12 Fingerprint Lock, Dhiedas Smart Padlock, Bluetooth Lock, Fingerprint Padlock with Keyless,... Fingerprint Lock, Dhiedas Smart Padlock, Bluetooth Lock, Fingerprint Padlock with Keyless,...
13 Keyless Gate Lock - Secure Fence Lock & Latch - Strong Durable System (XLS - Heavy Duty) Keyless Gate Lock - Secure Fence Lock & Latch - Strong Durable System (XLS - Heavy Duty)
14 JOUNJIP Mechanical Keyless Combination Latch Door Lock - Double Sided Keypads for Gates, Fences,... JOUNJIP Mechanical Keyless Combination Latch Door Lock - Double Sided Keypads for Gates, Fences,...
15 CODACE Keyless Entry Door Lock with Keypad, Double Sided Keypads Door Lock with Handle, Digital... CODACE Keyless Entry Door Lock with Keypad, Double Sided Keypads Door Lock with Handle, Digital...
16 MX400 14 Digit Keypad Mechanical Door Lock Lever Set - 60mm Latch for Residential Gates or Doors -... MX400 14 Digit Keypad Mechanical Door Lock Lever Set - 60mm Latch for Residential Gates or Doors...
17 Combination Lock Resettable 4 Digit Padlock with Combination, AIHYTU Waterproof and Heavy Duty... Combination Lock Resettable 4 Digit Padlock with Combination, AIHYTU Waterproof and Heavy Duty...
18 Puroma 2 Pack Combination Lock 4 Digit Outdoor Waterproof Padlock for School Gym Locker, Sports... Puroma 2 Pack Combination Lock 4 Digit Outdoor Waterproof Padlock for School Gym Locker, Sports...
19 Ardwolf A60 Keyless Entry Fingerprint Lock,Electronic Autolock Biometric 304 Stainless Steel Door... Ardwolf A60 Keyless Entry Fingerprint Lock,Electronic Autolock Biometric 304 Stainless Steel...
20 4 Digit Combination Padlock 6 Inch Heavy Duty Outdoor Waterproof Lock with Resettable Code Combo... 4 Digit Combination Padlock 6 Inch Heavy Duty Outdoor Waterproof Lock with Resettable Code Combo...
Bestseller No. 1
YARDLOCK Keyless Gatelock, Secure Gate Lock (MBX-2016Y-3ESF)
  • Yardlock's GATE lock - provides advanced security without the hassle of keys or pad locks. The patented (us #9528306) 4-dial internal combination...
  • Ready for all seasons - weather proof and dependable in extreme conditions, will not freeze or rust. Constructed from a zinc die cast body with a...
  • One hand operation - the YARDLOCK can be operated with one hand from either side of the gate. The protective latch cover prevents people from reaching...
  • Keyless security - the patented keyless and battery free gate lock will provide your family with years of security access control while also operating...
  • Easy and fast installation - the innovative design will ensure a perfect fit to a wide range of post sizes and can be installed at any height
Bestseller No. 2
Master Lock Combination Lock, Set Your Own Combination Lock, Indoor and Outdoor Padlock,...
  • Indoor and outdoor padlock is best used as a school locker lock, gym lock, and gate lock, providing protection and security from theft
  • Set your own four-digit combination lock for easy combination recall; Combination change tool included
  • Combo lock is constructed with a solid body for strength and weatherability, hardened steel shackle for cut resistance
  • 2 inch (51 millimeter) wide lock body; 5/16 inch (8 millimeter) diameter shackle with 1 inch (25 millimeter) length, 1 inch (25 millimeter) width
  • Shackle is preset to open on 0-0-0-0. Some instructions may incorrectly state shackle opens on l-o-c-k. See user manual in technical specifications...
Bestseller No. 3
Stainless Steel 100% Mechanical Keyless Entry Door Lock with Keypads Door Knob, Waterproof Keypad...
  • 【Applicable Doors】Work with both left and right handed doors due to adjustable unlocking direction. The mechanical door lock is suitable for...
  • 【100% Mechanical & Keyless】No need to charge and install batteries. Reject complex electronic programming. Keyless entry door locks are easily...
  • 【Easy to Set Up & DIY Installation】It is easy to set and change the codes. Combination can be 4-7 digits composed of numbers or alphabets except C...
  • 【More Durable & Waterproof】The materials of stainless steel digital door locks, with enhanced anti-corrosion surface treatment performance, is 5...
  • 【Protect Beauty of Door】There is no need for large area drilling. 2 ways to install the lock keeper, surface (No need to embed the lock plate in...
SaleBestseller No. 4
Puroma 2 Pack 2.6 Inch Long Shackle Combination Lock 4 Digit Outdoor Waterproof Padlock for School...
  • Special Design: Compact size, lightweight, and convenient for you to store and carry. Side windows for easy combination viewing.
  • High Security: 4-digit offers 10,000 combinations for added security compared with 3-digit. Set your mind at rest while doing your sports or job.
  • Re-settable: Numeric combination design makes it easy to set and reset your own preferred combination and hassle-free to carry the key.
  • Widely Usage: Suitable for school gym locker, sports locker, fence, toolbox, case, hasp storage and etc.
  • Package Content: Comes with 2 packs of zinc alloy 4-digit re-settable combination locker locks. Ideal gift to your friends, classmates, and etc.
Bestseller No. 5
CODACE Mechanical Keyless Entry Door Lock with Keypad Door Knob, Waterproof Keypads Deadbolt Door...
  • 【 Applicable Doors 】Work with both left and right handed doors due to adjustable handle direction. The keyless entry door lock with keypad is...
  • 【 100% Mechanical & Keyless 】No need to charge and install batteries. Simple installation and operation principle, providing a high level of...
  • 【 Easy to Set Up & DIY Installation 】It is easy to set and change the codes. Combination can be 4-6 digits composed of numbers or alphabets except...
  • 【 More Durable & Waterproof 】The stainless steel digital door lock is made of #304 stainless steel, and the matte anti-corrosion surface treatment...
  • 【 Advanced Matte Black 】Black can match doors of various colors. The matte surface makes the combination door lock more beautiful and more...
Bestseller No. 6
CODACE Keyless Entry Door Lock with Keypad Door Knob, Double Sided Keypads Door Lock with Handle,...
  • Double Sided Keypad Door Lock - Not only front panel, but also internal panel of this keypad lock can set password. That is, unlocking from the inside...
  • 100% Mechanical Keyless Entry Door Lock - No batteries, power or wiring required. Reject complex electronic programming and low battery warnings....
  • Economical and Durable Outdoor Gate lock - This keypad door knob lock is coated with enhanced corrosion protection layer which is waterproof,...
  • Applicable Doors - Work with both left and right opening doors due to adjustable handle. This combination door lock is suitable for doors with 1-3/8"...
  • EASY TO SET UP AND INSTALL - No extensive drilling is required to install this digital door lock, which can ensure the beauty of the door. Configured...
Bestseller No. 7
CODACE 100% Mechanical Keyless Entry Door Lock with Keypad Door Knob, Waterproof Keypad Deadbolt...
  • 【Applicable Doors】Keyless entry door lock works with both left and right handed doors due to adjustable unlocking direction. And also suitable for...
  • 【100% Mechanical & Keyless】No need to charge and install batteries. Simple installation and operation principle provide a high level of anti-theft...
  • 【Easy to Set Up & DIY Install】Easy to set and change the codes. Combination can be 4-6 digits composed of numbers or alphabets except for the C...
  • 【More Durable & Weatherproof】The digital outside gate lock is made of #304 stainless steel, and the enhanced anti-corrosion surface treatment...
  • 【Protect Beauty of Door】There is no need for large area drilling. 2 ways to install lock keeper, surface(No need to embed the lock keeper in the...
SaleBestseller No. 8
Disecu 2.5 Inch Long Shackle Combination Lock 4 Digit Outdoor Waterproof Padlock for School Locker,...
  • 【2 Pack】One padlock set includes 2 pack of 4 digit combination lock, with long shackle of hardened and plated steel for cut-resistance.
  • 【High Security】4 digit combination lock for keyless convenience, offers a extra level of security with 10000 combinations, 10 times safer than 3...
  • 【Long Shackle Widely Use】2.5 Inch Long shackle can be used for more choices than short shackle combination padlock, suitable for luggage, chest,...
  • 【Durable Material & Excellent Design】The combination lock has cast metal body, it has antirust, waterproof, cut-resistance function because of the...
  • 【100% Money-Back & "Risk-Free" Guarantee】We will replace or refund your purchase if you have any problems. Disecu prizes customer satisfaction,...
Bestseller No. 9
JOUNJIP Mechanical Keyless Combination Lever Handle Door Lock - Passage Mode - Double Sided Keypad...
  • 100% Mechanical Lock, Keyless Entry Door Handle - absolutely NO batteries, power or wiring required. Convenient door security solution for interior...
  • 2-Way Security - Double sided gate lock, door latch is connected to two stand alone keypads creates versatile control access for in and out security
  • "Bump Key Proof" Lock - Double lockset with up to 9-digit codes, frustrates burglary and unauthorized trespassing attempts with 4000+ possible...
  • Drop Pin Code Design & Passage Mode Option - allow for multi-function code options featuring a Passage Mode function. Temporarily deactivate the code...
  • Universal Installation, Fits any standard door - adjustable door lock with cuttable spindles, possible door thickness 35mm-54mm (1 3/8” to 2 1/8”)...
Bestseller No. 10
MUTEX MX920 Double Keypad Mechanical 14 Key Combination Lock , Keyless Entry Security for Home...
  • INCLUDES 60MM LATCH FOR UP TO 2” THICK DOORS: Stop would be thieves in their tracks. Drop in replacement into standard 2 1/8” USA bore holes with...
  • DUAL KEYPADS, PREVENT REACH AROUND OPENING: Prevents reach-through or over the top access to your entryway by requiring key codes before entry and...
  • 14 SPRING-LOADED KEYS provide over 8000 possible combinations. Code can be entered in any order. Keep unwanted intruders out of your home or business....
  • FULLY MECHANICAL SAFEGUARD: Batteries or wired source not required! Not everyone needs or wants Bluetooth or apps to unlock the door. Built to last...
  • CONVENIENT KEYLESS ENTRY: Enjoy the convenience and peace of mind with keyless entry and exit, and one less key to carry around. Intermediate to...
SaleBestseller No. 11
Igloohome Smart Padlock, Smart Lock w/ Case- IOS/Android App Remotely Generates Bluetooth-Keys/Pin...
  • CONVENIENCE: Grant access remotely and instantly no matter where you are.
  • APP-ENABLED: Manage and send PIN Codes or Bluetooth Keys via the igloohome app.
  • WORKS OFFLINE: Our unique AlgoCode technology makes this possible with AES-encrypted security, allowing you to grant access remotely.
  • ACTIVITY LOG: Via the mobile app, track dates & times of when someone unlocks the padlock
  • VERSATILE: Built with versatility in mind, Igloohome Padlocks are the most flexible padlock that allows for time-sensitive access.
Bestseller No. 12
Fingerprint Lock, Dhiedas Smart Padlock, Bluetooth Lock, Fingerprint Padlock with Keyless,...
  • 【Fingerprint Padlock】Your finger is the key, to keep your property away from the thief. Fingerprint padlock supports 15 group of fingerprint, 2...
  • 【Smart Bluetooth Padlock】The gym locker lock can record unlock the person, unlock time, and other history. Register fingerprints in the App and...
  • 【Large Battery Capacity】The padlock has low power consumption and a long standby time. A 110MAH rechargeable lithium battery can support about...
  • 【Smart Small Padlock】Equipment with a waterproof rubber stopper to prevent water from entering the charging port at the bottom of the lock. Note:...
  • 【Combo Lock】Size of the padlock is 1.7in*0.6in*2.5in. Made of zinc alloy and stainless steel, combo lock has excellent cut resistance, protect...
Bestseller No. 13
Keyless Gate Lock - Secure Fence Lock & Latch - Strong Durable System (XLS - Heavy Duty)
  • HOW IT WORKS: Enter your personal code to open the box. Inside the box, a wire drilled through the door lifts the latch on the other side allowing...
  • DOES IT FIT MY GATE: Can be installed on wood of vinyl gates only. Works for gates swinging in toward yard side or out toward street side. See...
  • DIMENSIONS AND FEATURES: XLS model is larger - 3(w) x 5(h) compared to 2 ½ (w) x 3 ½ (h) for the regular model – and includes larger dial numbers...
  • SAFE AND SECURE: Effective and strong locking system. Always works - No keys, no batteries no electronics needed. Latch system can’t be reached from...
  • EASY TO INSTALL: No need to be a pro to install. A tape measure, a screwdriver, and a wood bit to drill a hole are needed. Gate Lock comes with latch...
Bestseller No. 14
JOUNJIP Mechanical Keyless Combination Latch Door Lock - Double Sided Keypads for Gates, Fences,...
  • No Batteries Needed - Reliable Mechanical Operation - Dual Keypads for 2-way Security - Intermediate to Advanced Installation Skill Level Required
  • "Bump Key Proof" Keyless Lock - 2 Different Passcodes Possible for Primary and Secondary Keypads
  • No Easy Release Button Available - Eliminates "Reach Through" Security Risk on Gates, Fences, Windows
  • New QuickCode Design on the Back of the Keypads for Much Simpler Code Change than previous version
Bestseller No. 15
CODACE Keyless Entry Door Lock with Keypad, Double Sided Keypads Door Lock with Handle, Digital...
  • Double Sided Keypads Door Lock- Different from traditional door locks, this keyless entry door lock is designed with dual keypads, which supports...
  • Auto-Lock & Normal Open Mode- Automatically lock when the door is closed. Better protect your home security. Upgrade normal open mode is convenient...
  • 100% Mechanical Keyless Door Lock- No more worrying about forgetting or losing your keys and cards. Unlike electronic door locks, it does not require...
  • More Durable- This digital door lock is made of #304 stainless steel. The surface is covered with reinforced anti-corrosion coating to make it more...
  • Easy to Install-Applicable door thickness is 1-3/8" to 2-15/16"(35mm-75mm). Matching backset/latch is standard 2-3/8". Password setting operation and...
SaleBestseller No. 16
MX400 14 Digit Keypad Mechanical Door Lock Lever Set - 60mm Latch for Residential Gates or Doors -...
  • Secure Your Home or Business with Keyless Entry: Choose your own four to six digit code that can be entered in any order. Installs easily over...
  • Easy Code Changes on rear plate with flathead screwdriver. Universal Lever can fit on both Left or Right Handed Doors. Whether your door is push or...
  • No Batteries, Keys or Wired Power Source Required: Pry proof lock is resistant to forced entry. Full metal body with metal push buttons that are...
  • The Perfect Keyless Entry Solution: This lock can secure your residential or commercial property and protect valuable assets. Section off your areas...
  • Easy to Clean and Sanitize Surface: High quality polished satin chrome exterior repels moisture and grease easily. Clean with any disinfectant and a...
SaleBestseller No. 17
Combination Lock Resettable 4 Digit Padlock with Combination, AIHYTU Waterproof and Heavy Duty...
  • ▶HIGH SECURITY: 4 digit combo lock offers 10,000 combinations which make it safe enough. Equipped with an advanced damper design for accurate...
  • ▶EASY TO USE: A clear Instruction are included in the package. Make it easy to set and reset your own combination. Compact size, light weight. No...
  • ▶DURABLE PADLOCK: This padlock is constructed with a high strength zinc alloy body, stainless-steel cover and hardened steel shackle, which make it...
  • ▶WIDELY USE: AIHYTU resettable combination lock is perfect for both indoor and outdoor use. Great for gym locker, school locker, backyard, fence...
  • ▶What You Get: 2 pack combination padlocks, a clear Instruction, 60 Days Money Back Guarantee, Fast and easy-to-reach Customer Service.
SaleBestseller No. 18
Puroma 2 Pack Combination Lock 4 Digit Outdoor Waterproof Padlock for School Gym Locker, Sports...
  • Special Design: Compact size, light weight, and convenient for you to store and carry. Side windows for easy combination viewing.
  • High security : 4-digit offers 10, 000 combinations for added security compared with 3-digit. Set your mind at rest while doing your sports or job.
  • Resettable: Numeric combination design makes it easy to set and reset your own preferred combination and hassle-free to carry the key.
  • Widely use: Suitable for school gym locker, sports locker, fence, toolbox, case, hasp storage and etc.
  • Package Content: The package comes with 2 packs of zinc alloy 4-digit resettable BLACK combination locker locks. Ideal gift to your friends,...
Bestseller No. 19
Ardwolf A60 Keyless Entry Fingerprint Lock,Electronic Autolock Biometric 304 Stainless Steel Door...
  • ❗Irreversible Right Handle❗ STRONG & FIRM STRUCTURE: the whole lock body adopts the most solid lock shell material - Stainless steel 304, with the...
  • SENSITIVE FINGERPRINT READER: the fingerprint door lock adopts live semiconductor sensor and 360-degree fingerprint recognition allows this lock to...
  • LARGE CAPACITY AND MULTIPLE UNLOCK WAY: UP to 200 user IDs could be registered to this security biometric smart lock and both fingerprint and code...
  • HIGH-SECURITY & SURVEILLANCE BIOMETRICS: Our smart door lock is ensured to be safe for your home and office, attributing to its anti-fake finger,...
  • ABLE TO BE WIDELY USED: ❗fits door thickness between 1-1/5" and 2-2/5"(30-60mm)❗; Operation temperature from -4°F to 140°F; Anti-Collision,...
Bestseller No. 20
4 Digit Combination Padlock 6 Inch Heavy Duty Outdoor Waterproof Lock with Resettable Code Combo...
  • Sturdy and Waterproof: these padlock resettable combinations are made of fine metal material, strong and serviceable, weatherproof and waterproof, not...
  • Simple to Use: the long shackle pad lock is easy to create your own codes, simply remove the loop part and turn the cap away from the lock, and take...
  • Safe and Secure: these digital combination padlocks are ideal ways to secure your cabinets, gates, bikes or other things well, no need for keys, you...
  • Lengthened Shackle Lock: the resettable combination locks have long shackle, measured approx. 13 cm/ 5.12 inch, which can be applied for more choices,...
  • Wide Applications: the long shackle lock combination can be widely applied in outdoor and indoor, suitable for applying in school, home, garages,...

Having trouble finding a great Code Locks For Gates?

This problem is well understood by us because we have gone through the entire Code Locks For Gates research process ourselves, which is why we have put together a comprehensive list of the best Code Locks For Gatess available in the market today.

After hours of searching and using all the models on the market, we have found the best Code Locks For Gates for 2023. See our ranking below!

How Do You Buy The Best Code Locks For Gates?

Do you get stressed out thinking about shopping for a great Code Locks For Gates? Do doubts keep creeping into your mind?

We understand, because we’ve already gone through the whole process of researching Code Locks For Gates, which is why we have assembled a comprehensive list of the greatest Code Locks For Gates available in the current market. We’ve also come up with a list of questions that you probably have yourself.

John Harvards has done the best we can with our thoughts and recommendations, but it’s still crucial that you do thorough research on your own for Code Locks For Gates that you consider buying. Your questions might include the following:

  • Is it worth buying an Code Locks For Gates?
  • What benefits are there with buying an Code Locks For Gates?
  • What factors deserve consideration when shopping for an effective Code Locks For Gates?
  • Why is it crucial to invest in any Code Locks For Gates, much less the best one?
  • Which Code Locks For Gates are good in the current market?
  • Where can you find information like this about Code Locks For Gates?

We’re convinced that you likely have far more questions than just these regarding Code Locks For Gates, and the only real way to satisfy your need for knowledge is to get information from as many reputable online sources as you possibly can.

Potential sources can include buying guides for Code Locks For Gates, rating websites, word-of-mouth testimonials, online forums, and product reviews. Thorough and mindful research is crucial to making sure you get your hands on the best-possible Code Locks For Gates. Make sure that you are only using trustworthy and credible websites and sources.

John Harvards provides an Code Locks For Gates buying guide, and the information is totally objective and authentic. We employ both AI and big data in proofreading the collected information.

How did we create this buying guide? We did it using a custom-created selection of algorithms that lets us manifest a top-10 list of the best available Code Locks For Gates currently available on the market.

This technology we use to assemble our list depends on a variety of factors, including but not limited to the following:

  1. Brand Value: Every brand of Code Locks For Gates has a value all its own. Most brands offer some sort of unique selling proposition that’s supposed to bring something different to the table than their competitors.
  2. Features: What bells and whistles matter for an Code Locks For Gates?
  3. Specifications: How powerful they are can be measured.
  4. Product Value: This simply is how much bang for the buck you get from your Code Locks For Gates.
  5. Customer Ratings: Number ratings grade Code Locks For Gates objectively.
  6. Customer Reviews: Closely related to ratings, these paragraphs give you first-hand and detailed information from real-world users about their Code Locks For Gates.
  7. Product Quality: You don’t always get what you pay for with an Code Locks For Gates, sometimes less, and sometimes more.
  8. Product Reliability: How sturdy and durable an Code Locks For Gates is should be an indication of how long it will work out for you.

John Harvards always remembers that maintaining Code Locks For Gates information to stay current is a top priority, which is why we are constantly updating our websites. Learn more about us using online sources.

If you think that anything we present here regarding Code Locks For Gates is irrelevant, incorrect, misleading, or erroneous, then please let us know promptly!

Related Post:

FAQ:

Q: How to lock outdoor gates?

A: Simple to fit Inexpensive compared to other locks As secure,if not more secure,than a long throw gate lock Can be fitted to all types of gates (i.e. ledged and braced gates,framed ledged and braced gates). …

Q: How do you locate a Master Lock key code?

A: – Find your lock’s serial number. – Print out the Lost Combination Form (PDF). – Have the form notarized by a Notary Public to prove you are the owner of the lock. You can include up to 6 combinations on one notarized form. – Submit your form to: Master Lock Warehouse 24 North Free Port Drive Nogales, AZ 85621

Q: What is a mechanical code lock?

A: – Medium duty – Commercial, government or multi-family applications – Pros – meets codes for simultaneous retraction in multi-family – Cons – Limited finishes, trim designs and functions