fixed up some uninitialized variables