fix segfault
add set_reduced_coordinates