input directory is passed by command line arguments