removed setData function from setup routine