fixes uninitialized variable warning