before error analysis