optimize component. complete doc.