b += w * (a - b) just sounds like you're trying to keep yourself employed by hiding the keys to the kingdom.