added table tidying