don't add comma when last item in an array