use local variable to reduce coupling