changed table and routes