functional changes

functional changes to handle data from DDG api