changed tables into vectors