some more careful initialization of variables