changed default nearest neighbor