one method to print csv