foreach edited