progress on tube_map function and convert_coordinates function