first failing tc in, and refactoring.