almost ready to write info to tables