get the right component