record printing is now a function