didnt work: trying with forEach function