implemented processArgs()