made iteration count a command line argument