added base closest.py