adding methods to extract the data into a useable format