update RProcessor.cpp : processTS function