Text this: Resilient formation control in multi-agent systems considering leader failure