forLoopDistribution07 starting to intgrate for final version to main app