How rbi works