rb function changed