In "each", use "while" instead of "for/in", fix "son" and lots of problems.