remove last extraneous comma