add gradient func to bonuses, not work, in some time i rewrite this