docs and error message changed