Revert "foreach testing"

This reverts commit 22c608dd4d9f7101ddd3f6024f2de686f58368cd.
fixed error