chenges in service.js