added missing initializations for two variables