first iteration of saving a table