added twilio function and deleted log repeat function