moved sms_sent with status=1 to the first cycle