main correction