working on forEach function