implemented %reln and T%reln with associated helper functions