get tables func added