corrected uninitialized vars