added number min max support