Effects of changing mass on gravity