imp define
extract ref