pos.findClosest is undefined