fifth try + fix uninitialized variables