prepared everything for algorithmus implementation