correcting array for each for demo