ex 8 missing data refactored