calc min and max in the Ctor