added tables and first test loop