add simple mpi init code
transfer generate func into another function
mege generation task with first task
delete trash generate function