x_end removed