loop, remove last comma