start to centralise code to fetch data from yahoo