updated posts array in services.js