generating insertion table