changing to receive parameters from command line