changed coord_dims(coord= instances, loose ends