wrong calculation of main element
printing of tables
graph plotting