adding size check before wrapping schema into tuple schema