added command line args as parameter