bugfixes (variable initializations)