fixing ESM3 errors