updating extract()