broke out table creations into new def