rewrote rt's structure, added tests