modify version check