added table stuff as forgot about that