use of uninitialized error fixes