made ror and roi switchable