refactoring argv to variables.