changed brew update function