ex6: removed main2