added var to variable declaration