repository should be an object literal not an array of objects