wrote table getter