exchange min/max of header