fix tables method