added write_coordinates for translated structure