main program works for nsgaii