added processSMSData function