added at least and at most verification