[ENYO-19] updates to nearest neighbor