adding nearest point output
adding nearest