Sometimes the grub contains in itself the material from which, as it feeds, a residue is produc eg the grubs of bees and wasps; sometimes it gets its nourishment from outside itself, as caterpillars and some others.