dynamic type to compose