Effect of changes in mass on gravity