got the first case work with algnearestneighbor