correct set+error control