updated main tables