set up data structures