checkLeftFork and checkRightFork methods is added