adding previous version check