added headers in printing