updated correction level to be dynamic