now uses struct to save timestamp to display in table