try component as class