pass by value is the bane of my existance