improved check version