edit for spin.js