fixed bug 4-for in loop