implemented tables method