Effect of inhomogeneities on the expansion rate of the universe