model optimization roughly working