fix to pedantic errors