corrected invalid single-value return