created to skeleton functions for outputing json and txt files