add xmin and xmax to eventlist