moved declearations to rbps_ns