stopped working at a certain point. unsure of how pass params around