setValueR moved to useful-functions