removed usage of uninitialised values