add forEach to object