error removal in rt_mods.f90