fix delimiter in record func