prepare table before add index