organized/added file around loop