added new functionality to output