cleaned up main, printouts