fixed matchChild to be more in react style