fixed uninitalized vars