global variable problem solved adding static variable and class method in DataProcess.m file