merging optimization file with the main class