mark - before fixing unboundlocalerror in subset
mark - fixed extent error raise issue