fixed the functionality for passing no arguments to the program