Is the intent to loop over the newly created array? In that case you forgot to do it, array is never used anywhere