added component.json and reversed loop