five stages of error analysis