fixing misunderstood command line arguments