Converting to component