refactored parsed components into an object