consistent way to declare instance vars between code branches