prepare for table