organize code into fetched and extracted section