change some functions compatiable to both 6RB and 100RB