added functionality to tables