initialized variable correctluy