before trying to add a parameter to determine whether to print the whole record