fixed iterate file