formatting service.js