take decode errors into account