new root check method added