Adding sub(TAG, ) to obtain_data method