saving optimization data
cleaning up