unified all loops into one file and called using require tags.