fixed uninitialized variables