adding missing initialization of a couple of variable