rename some variables and functions
change forEach to a normal for
change progress info