tweak so it doesn't add trailing comma