minor code improvement

keep a var private