fixed pedantic warning