add register for each component