compiling rtn