simplify context binding in forEach