refractored main
cleaned up show