remove trailing `,`