passing check_doc() now