automatic feature min/max findinng