adding functionality to the table