rtarget initial code