use local scope variable