added doc validation