start working on outputting functions