process data method added