Avoid using scope as local variable