I see your point. I agree it is cleaner the way you suggest. My goal in using variables was to make the code more readable -- most people won't know what the boolean variables correspond to. I have removed the variables and have added comments describing the boolean values.