added function to clear vectors that are stored in data tree