started refactoring kernelArgument