minor tweaks to fix compiler warnings.