added var instead of scope