fixed initaliztion of variable