adding code for table