updated .forEach