modified 12.js