added var and fixed the indenting