simplified and stabilised rta.def