rebuild table