added size version checking