change two tables