modify the core.js