removed tables rewrite and tree