uses command line parameters as input