-r function is working :-)