fixed use of uninitialized variables