add method checkLevelDepth