@x_len rather than @xmax