grab record func