for Daniel

code in section TO BE DELETED should be wrapped in main i guess