added memoize to services.js