fix up formalization
fix impl section