added function getting to table