reconfiguration for next steps

moved code to seperate file