fix some pedantic warnings