version check added