finished with main tables