deleted empty x_med