setting up the hardware