Used wrong method in forEach sample