adapt for rin