swap calendar and table assignment