creation of functions to create output, easy to understand