Revert "fifth try + fix uninitialized variables"

This reverts commit 65cd6720895775dc0b816acb85c354a3f3bb17bf.
fifth try