add comma to the end of array