removed need for isComponent