fix compile warnings

simple cosmetic changes needed to silence compile warnings.