dont turn NEXT_DOC to int