corrected r sothat i compiles with readline