missing r-code checking in code from DEV