well that should work fine, must be something in the rest of the program that isn't being shown, maybe a variable declaration, changing the variable itself in another part of the program, etc.etc.