added function for setup and records