@gjtorikian would it be ok, if i change this to use separate `var` for each variable, 
It prevents bugs like this.