keep var pannel a local variable