multiple use of var avoided