Replace some var with let.