after the sugar has dissolved, add a few drops of liquid dish soap. the vinegar and sugar attract the fruit flies, the soap changes the surface tension of the water so the flies can't escape, and the water drowns the little suckers.