input correction