fun example of bettersub function