getting data stored to print out