privent errors.