corrected edge case in which there are no missing values