get rid of several "variable 'x' set but not used" warnings