now it is able to generate a data frame of extents