changes in api used.js