breaking out table into proper data