edit r check