Reuse local variable schema_ver

peer review input