using "closest" method for readability