converting components to new map syntax