finish init tables