added -max values