+bug fix for variable init