added nn ids and coords