update commas at endline