removed last comma from array