created and filled tables