diff --git a/etrago/appl.py b/etrago/appl.py
index <HASH>..<HASH> 100644
--- a/etrago/appl.py
+++ b/etrago/appl.py
@@ -103,6 +103,10 @@ def etrago(args):
     # for SH scenario run do data preperation:
     if args['scn_name'] == 'SH Status Quo':
         data_manipulation_sh(network)
+        
+    # grouping of parallel lines
+    if args['line_grouping']:
+        group_parallel_lines(network)
 
     #load shedding in order to hunt infeasibilities
     if args['load_shedding']:
@@ -124,10 +128,6 @@ def etrago(args):
     else:
         extra_functionality=None
         
-    # grouping of parallel lines
-    if args['line_grouping']:
-        group_parallel_lines(network)
-        
     # parallisation
     if args['parallelisation']:
         parallelisation(network, start_snapshot=args['start_snapshot'], end_snapshot=args['end_snapshot'],group_size=1, solver_name=args['solver'], extra_functionality=extra_functionality)
changed position of grouping function in script

otherwise there might be conflicts with network clustering.