i started some explanation though it's still quite mathy