cleanup of calc-error-profile