rb on int rather than pointers (for testing)