version checking added