fixin the error in the script