new error correctin, work in progress