fix typo
improve interface between components