corection functions