How a cavity is filled