+add Input size constraint.