adding rdtorres function