cleaning core.js