why is there a default err value here?