removed proc()
added command line arguements