added output to main