added error message if formation not possible