fixed &num iteration in dump()