adding the sms damage funciton