Made split_coords_2d to return 2D coordinates