updaing the passed variable