added module code to showoutput function