changed managed and rc check function