added new structure for formation algorithm