replace the forEach with a normal for

dont be lazy
use a for loop instead of forEach

dont be lazy