make proximity toggle actually work