call basket bs compiling and executing
clean main and add typedef for more transparence