Accurate definition of doughnut