uinitial variables cause crash