removed computation max/min at each step in periodicvector