Add variables  declaration in function