try finding error when building document