Use index param of forEach