Tiny question google can't really answer

If you want to change the name of a variable you must change all occurrences of it in the program. My guess is that you did not change the line that defines the variable

char data = 0;

...R