added subdivide_x_y_into segements