use var instead of const for IE compliance