corrected unitialized variable