renamed the validation script, renaming some functions in the code