potentially uninit variables warnings fixed