root check added